//---------------------------------------------------------------------------------------------------
inline void IndexBuffer::SetIndexQuantity(int iIQuantity)
{
	m_iIndexQuantity = iIQuantity;
}
//---------------------------------------------------------------------------------------------------
inline int IndexBuffer::GetIndexQuantity()
{
	return m_iIndexQuantity;
}
//---------------------------------------------------------------------------------------------------
inline int IndexBuffer::operator[] (int i) const
{
    assert(0 <= i && i < m_iIndexQuantity);
    return m_aiIndex[i];
}
//---------------------------------------------------------------------------------------------------
inline int& IndexBuffer::operator[] (int i)
{
    assert(0 <= i && i < m_iIndexQuantity);
    return m_aiIndex[i];
}
//---------------------------------------------------------------------------------------------------
inline int* IndexBuffer::GetData()
{
	return m_aiIndex;
}
//---------------------------------------------------------------------------------------------------
inline const int* IndexBuffer::GetData() const
{
	return m_aiIndex;
}
//---------------------------------------------------------------------------------------------------
inline const int IndexBuffer::GetID() const
{
	return m_iID;
}
//---------------------------------------------------------------------------------------------------
inline void IndexBuffer::SetID(int iID)
{
	m_iID = iID;
}
//---------------------------------------------------------------------------------------------------
inline void IndexBuffer::SetOffset(int iOffset)
{
	assert(iOffset > 0);
	m_iOffset = iOffset;
}
//---------------------------------------------------------------------------------------------------
inline int IndexBuffer::GetOffset() const
{
	return m_iOffset;
}
//---------------------------------------------------------------------------------------------------